<template>
  <view class="loginOrRegister">
    <login v-if="isLogin" :Register="toRegister"></login>
    <register v-else></register>
  </view>
</template>

<script>
  import { toRegister} from '@/utils/loginAndRegister.js'
  export default {
    data() {
      return {
        username: '',
        password: '',
        isLogin: true
      };
    },
    methods: {
      toRegister(data) {
        return toRegister({_this:this,data:data})
      }
    }
  }
</script>

<style lang="less">
  page {
    background-color: #fff;
  }

  
</style>
